package demo3Computer;

public class Test {

    public static void main(String[] args) {
        Computer computer=new Computer();
        computer.open();

        //向上转型
        computer.useUsbDevice(new KeyBoard());
        computer.useUsbDevice(new Mouse());



        computer.close();
    }

}
